package com.cx.service.serviceimp;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.cx.mapper.OrderinfoMapper;
import com.cx.entity.Orderinfo;
import com.cx.service.OrderinfoService;
@Service
public class OrderinfoServiceImpl implements OrderinfoService{

    @Resource
    private OrderinfoMapper orderinfoMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return orderinfoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Orderinfo record) {
        return orderinfoMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(Orderinfo record) {
        return orderinfoMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(Orderinfo record) {
        return orderinfoMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(Orderinfo record) {
        return orderinfoMapper.insertSelective(record);
    }

    @Override
    public Orderinfo selectByPrimaryKey(Integer id) {
        return orderinfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Orderinfo record) {
        return orderinfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Orderinfo record) {
        return orderinfoMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<Orderinfo> list) {
        return orderinfoMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<Orderinfo> list) {
        return orderinfoMapper.batchInsert(list);
    }

}
